package cn.jark.common.types;

/**
 * @author 雨一直夏灬(须知少年凌云志, 曾许人间第一流)
 * @since 2020-10-28
 */
public class Percentage extends Number{

    private int value;

    public long getPercentage() {
        return value;
    }

    public void setPercentage(int value) {
        this.value = value;
    }

    public Percentage(int value) {
        this.value = value;
    }

    @Override
    public int intValue() {
        return value;
    }

    @Override
    public long longValue() {
        return value;
    }

    @Override
    public float floatValue() {
        return (float) value;
    }

    @Override
    public double doubleValue() {
        return value;
    }
}
